<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="/WEB-INF/jsp/common/page_head.jsp" %>

<script src="../asset/js/plugins/validate/jquery.validate.min.js" type="text/javascript"></script>
<script src="../asset/js/common/validate-methods.js" type="text/javascript"></script>
<script src="../asset/js/encrypt/md5.js" type="text/javascript"></script>
<script src="../asset/js/page/sysmrg/userUpdate.js" type="text/javascript"></script>

<body class="gray-bg">
	<form role="form" class="form-horizontal m-t" action="updateUser.do" id="updateUserForm">
	<div class="col-sm-12">
		<input id="id" name="id" value="${user.id}" type="hidden">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<div class="form-group">
					<label class="col-sm-2 control-label">用户账户</label>
					<div class="col-sm-10">
						<input id="userAcct" name="userAcct" placeholder="用户账户" value="${user.userAcct}" class="form-control required" type="text" />
						<span class="help-block m-b-none">
							<i class="fa fa-info-circle"></i>&nbsp;账号必须是字母或者数字
						</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">密码</label>
					<div class="col-sm-10">
						<input id="userPwd" name="userPwd" class="form-control required" type="password" value="${user.userPwd}" aria-required="true" aria-invalid="true" class="error">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">姓名</label>
					<div class="col-sm-10">
						<input type="text" id="userName" name="userName"  value="${user.userName}" class="form-control required">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">性别</label>
					<div class="col-sm-10">
					     <select id="sex" name="sex" class="form-control">
		                     <option value="0">男</option>
		                     <option value="1">女</option>
		                 </select>
		                 <input type="hidden" name="sexVal" id="sexVal" value="${user.sex}"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">所属部门</label>
					<div class="col-sm-10">
					     <select id="departmentCode" name="departmentCode" class="form-control">
		                 </select>
		                 <input type="hidden" name="departmentCodeVal" id="departmentCodeVal" value="${user.departmentCode}"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">办公电话</label>
					<div class="col-sm-10">
						<div class="row">
           					<div class="col-sm-3">
           						<input type="text" name="telCitycode" placeholder="区号" class="form-control" value="${user.telCitycode}">
           					</div>
           					<div class="col-sm-5">
           						<input type="text" name="telLocalnumber" placeholder="电话" class="form-control" value="${user.telLocalnumber}">
           					</div>
           					<div class="col-sm-3">
           						<input type="text" name="telExtension" placeholder="分机号" class="form-control" value="${user.telExtension}">
           					</div>
           				</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">手机号码</label>
					<div class="col-sm-10">
						<input type="text" name="mobile"  value="${user.mobile}" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">电子邮箱</label>
					<div class="col-sm-10">
						<input type="text" name="email"  value="${user.email}" class="form-control">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="layer-btn-class">
		<button id="saveBtn" class="btn btn-primary" type="submit">保存</button>
		<button type="button" class="btn btn-white cancle-btn">取消</button>
	</div>
	</form>
</body>